package org.kamionowski.supreme.controllers.base;

import org.kamionowski.supreme.controllers.tools.FileTypeEditor;
import org.kamionowski.supreme.services.search.tools.FileType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

/**
 * Created by IntelliJ IDEA.
 * User: soldier
 * Date: 18.03.11
 * Time: 00:43
 * To change this template use File | Settings | File Templates.
 */
@Controller
public abstract class BaseController {

    @InitBinder
    public void initBinder(WebDataBinder binder) {
        binder.registerCustomEditor(FileType.class, new FileTypeEditor());
    }
}

